using JT808Protocol.Models;
using System;

namespace JT808Protocol.Abstracts
{
    public interface IJT808Parser
    {
        /// <summary>
        /// 解析JT808包
        /// </summary>
        /// <param name="hexBytes">16进制字节数组</param>
        /// <returns></returns>
        JT808Package Parse(ReadOnlySpan<byte> hexBytes);

        /// <summary>
        /// 解析JT808包
        /// </summary>
        /// <param name="hexString">16进制字符串</param>
        /// <returns></returns>
        JT808Package Parse(string hexString);
    }
}